/**
 * ____________________ *
 *  ____ ____ ____ _  _ *
 *  |___ [__] |--< |\/| *
 * ____________________ *
 *
 * THE CORM PROJECT
 *
 * This file may only be used in accordance with the
 * terms of the Academic Free License ("AFL") v. 3.0,
 * as published by the Open Software Initiative.  A
 * copy of this license is provided in this source
 * release, and may be viewed online at:
 *
 * (http://www.opensource.org/licenses/afl-3.0.php)
 */
package org.eremite.corm.party;

import org.eremite.corm.DefaultArchetype;
import org.eremite.corm.party.address.Address;
import org.eremite.corm.party.relationship.Capability;
import org.eremite.corm.party.relationship.PartyRole;

import java.util.HashSet;
import java.util.Set;

public class DefaultParty
        extends DefaultArchetype
        implements Party {

    private PartyIdentifier partyId = new DefaultPartyIdentifier();
    private Set <Address> addresses = new HashSet <Address> ();
    private Set <Preference> preferences = new HashSet <Preference> ();
    private Set <RegisteredIdentifier> registeredIds = new HashSet <RegisteredIdentifier> ();
    private Set <Capability> capabilities = new HashSet<Capability>();
    private Set <PartyRole> roles = new HashSet <PartyRole> ();

    /* Default Zero-arg Constructor */
    public DefaultParty() {};

    public PartyIdentifier getID() {
        return partyId;
    }

    public void setID(PartyIdentifier id) {
        this.partyId = id;
    }

    public Set<Address> getAddresses() {
        return addresses;
    }

    public void setAddresses(Set<Address> addresses) {
        this.addresses = addresses;
    }

    public Set<Preference> getPreferences() {
        return preferences;
    }

    public void setPreferences(Set<Preference> preferences) {
        this.preferences = preferences;
    }

    public Set<RegisteredIdentifier> getRegisteredIdentifiers() {
        return registeredIds;
    }

    public void setRegisteredIdentifiers(Set<RegisteredIdentifier> registeredIds) {
        this.registeredIds = registeredIds;
    }

    public Set<PartyRole> getPartyRoles() {
        return roles;
    }

    public void setPartyRoles(Set<PartyRole> roles) {
        this.roles = roles;
    }

    public Set<Capability> getCapabilities() {
        return this.capabilities;
    }

    public void setCapabilities(Set<Capability> capabilities) {
        this.capabilities = capabilities;
    }

}